package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhc
 * @since 2025-03-25
 */
@Data
@TableName("route")
@ApiModel("路由")
public class Route implements Serializable {

    @TableId(value = "route_id", type = IdType.AUTO)
    @ApiModelProperty("路由的唯一标识ID")
    private Integer routeId;

    @ApiModelProperty("路由创建的时间")
    private LocalDateTime createdAt;

    @ApiModelProperty("路由更新的时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty("关联的设备ID")
    private Integer deviceId;

    @ApiModelProperty("关联的端口ID")
    private Integer portId;

    @ApiModelProperty("上下文名称")
    private String contextName;

    @TableField("inetCidrRouteIfIndex")
    @ApiModelProperty("路由接口索引")
    private Long inetCidrRouteIfIndex;

    @TableField("inetCidrRouteType")
    @ApiModelProperty("路由类型")
    private Integer inetCidrRouteType;

    @TableField("inetCidrRouteProto")
    @ApiModelProperty("路由协议")
    private Integer inetCidrRouteProto;

    @TableField("inetCidrRouteNextHopAS")
    @ApiModelProperty("下一跳自治系统编号")
    private Integer inetCidrRouteNextHopAS;

    @TableField("inetCidrRouteMetric1")
    @ApiModelProperty("路由度量值1")
    private Integer inetCidrRouteMetric1;

    @TableField("inetCidrRouteDestType")
    @ApiModelProperty("目标地址类型")
    private String inetCidrRouteDestType;

    @TableField("inetCidrRouteDest")
    @ApiModelProperty("目标地址")
    private String inetCidrRouteDest;

    @TableField("inetCidrRouteNextHopType")
    @ApiModelProperty("下一跳地址类型")
    private String inetCidrRouteNextHopType;

    @TableField("inetCidrRouteNextHop")
    @ApiModelProperty("下一跳地址")
    private String inetCidrRouteNextHop;

    @TableField("inetCidrRoutePolicy")
    @ApiModelProperty("路由策略")
    private String inetCidrRoutePolicy;

    @TableField("inetCidrRoutePfxLen")
    @ApiModelProperty("前缀长度")
    private Integer inetCidrRoutePfxLen;
}
